<!--
    /**
     * @author RaoShuang
     * @emil 991207823@qq.com
     * @date 2020/11/23 22:03
     */
-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>v-model的使用</title>
		<script src="js/vuejs-2.5.16.js"></script>
	</head>
	<body>
		<div id="app">
            <form action="" method="post">
                用户名：<input type="text" name="username" v-model="user.username"><br/>
                密码：<input type="text" name="password" v-model="user.password"><br/>
            </form>
		</div>
	</body>
	<script>
		//view model
        new Vue({
            el:"#app",
            data:{
                user:{
                    username:"test",
                    password:"1234"
                }
            }
        });
	</script>
</html>
